auto align the dimensions